package com.company.bookstore.qo.user_admin_module;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * AdminQo
 *
 * 查询实体类
 *
 * 参数校验
 * https://www.cnblogs.com/niugang0920/p/12689224.html
 * https://www.cnblogs.com/niugang0920/p/12689224.html
 * https://www.jianshu.com/p/349e130e40d5
 * @blame Android Team
 */
@ApiModel(value="管理员类",description="管理员请求类" )
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AdminQo implements Serializable {
    public static final int DEFAULT_ENABLED = 1;

    public static final int DEFAULT_DELETED = 0;

    public static final String DEFAULT_ADMIN_ROLE = "ROLE_ADMIN";
    @ApiModelProperty(value = "管理员id，只在修改的时候指定",example="7")
    private Integer id;
    /** 用户名*/
    @ApiModelProperty(value = "管理员姓名,8-20w个字符",example="zyxzyx")
    private String adminName;
    @ApiModelProperty(value = "管理员密码,8-20w个字符",example="1213141412")
    private String password;
    @ApiModelProperty(value = "角色主键id",example="1")
    private Integer fkRoleId;
    @ApiModelProperty(value = "可用状态，默认为1，修改时指定",example="")
    private Integer enabled;
    @ApiModelProperty(value = "删除状态，默认为0，修改时指定",example="")
    private Integer deleted;
    @ApiModelProperty(value = "性别,0为男性，1为女性",example="")
    private Integer sex;
    @ApiModelProperty(value = "页大小",example="1")
    private Integer pageSize;
    @ApiModelProperty(value = "页数",example="1")
    private Integer pageNum;

}
